package cn.itcast.springboot.listener;//package cn.itcast.springboot.listener;
//
//import cn.itcast.springboot.utils.RedisUtil;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.ApplicationEvent;
//import org.springframework.context.ApplicationListener;
//import org.springframework.data.redis.core.RedisTemplate;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//
//@Component
//public class StartupListner   implements ApplicationListener {
//
//    @Resource
//    RedisTemplate redisTemplate;
//    @Override
//    public void onApplicationEvent(ApplicationEvent event) {
//        RedisUtil.register(redisTemplate);
//    }
//}
